<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Ajax对缓存的处理</title>
    <script type="text/javascript">
        function f1(){
            var xhr = new XMLHttpRequest();
            xhr.open('get', './server.php?'+Math.random());
            xhr.send(null);
        }
    </script>
</head>
<body>
    <h2>Ajax对缓存的处理</h2>
    <input type="button" value="触发" onclick="f1()">
    <div id="result"></div>
</body>
</html>